/** 
 * @ProjectName: platform
 * @FileName: Footer.js
 * @PackageName:  webapp/app/view/main
 * @Description: (用一句话描述该文件做什么) 
 * @Author :  JasonWu (15909910367@163.com)
 * @Date:  2021年10月26日 
 * @Copyright (c) 2020-2025, 15909910367@163.com All Rights Reserved. 
 * 
 */
Ext.define('Jason.view.main.Footer', {
    extend: 'Ext.container.Container',
    xtype: 'app-footer',
    layout: {
        type: 'hbox',
        pack: 'start',
        align: 'center'
    },
    height: 40,
    items: [{
        xtype: 'box',
        margin: '0 0 0 10',
        itemId: 'footerLoginMsg',
        html: '暂未登录'
    }, {
        flex: 1
    }, {
        xtype: 'box', html: cfg.copyRight
    }, {
        xtype: 'component',
        width: 150,
        reference: 'time',
        padding: '0 10 0 0',
        style: 'text-align: right',
        html: '<span class="fa fa-clock-o"></span><span class="time-txt" id="timeTxt"></span>',
        listeners: {
            boxready: function (cmp, w, h, eOPts) {
                var timeEl = cmp.getEl().dom.querySelector('.time-txt');
                setInterval(function () {
                    timeEl.innerHTML = Ext.Date.format(new Date(), 'Y-m-d H:i:s');
                }, 1000);
            }
        }
    }],
    listeners: {
        afterrender: function (view) {
        }
    }
});